package com.zhiyou100.mapper;

import com.zhiyou100.model.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CustomerMapper {
    List<Customer> listCustomer(Map map);

    int addCustomer(Customer customer);

    int updateCustomer(Customer customer);

    Customer lookCustomer(int id);

    int deleteAll(List<Integer> customerIds);

    int delete(int id);

    Customer findCustomerById(int customerId);

    int findCustomerByIDCard(String idcard);

    int updateCustomerEndTime(@Param("customerEndtime") String customerEndtime,@Param("cid") int cid);
}
